<?php
session_start();
/**
 * Created by PhpStorm.
 * User: aa
 * Date: 2019/8/29
 * Time: 18:32
 */

// 包含配置文件
require APP_PATH . 'config/config.php';
require APP_PATH . 'config/database.php';

// 初始化常量
defined('CONTROLLER_DEFUALT') or define('CONTROLLER_DEFUALT', 'index');
defined('ACTIVE_DEFUALT') or define('ACTIVE_DEFUALT', 'index');
defined('FRAME_PATH') or define('FRAME_PATH', __DIR__.'/');
defined('APP_PATH') or define('APP_PATH', dirname($_SERVER['SCRIPT_FILENAME']).'/');
defined('APP_DEBUG') or define('APP_DEBUG', false);
defined('CONFIG_PATH') or define('CONFIG_PATH', APP_PATH.'config/');
defined('RUNTIME_PATH') or define('RUNTIME_PATH', APP_PATH.'runtime/');
defined('HEADER_NAME') or define('HEADER_NAME', 'header.php');
defined('FOOTER_NAME') or define('FOOTER_NAME', 'footer.php');
defined('__PUBLIC__') or define('__PUBLIC__', APP_PATH.'public');
defined('DEBUG') or define('DEBUG', false);
date_default_timezone_set("Asia/Shanghai");
//包含核心框架类
require_once FRAME_PATH . 'Core.php';
require_once FRAME_PATH . 'functions/functions.php';
// 实例化核心类
$fast = new Core;
$fast->run();
